<?php
class Dig_View_Helper_RenderDate extends Zend_View_Helper_Abstract
{
    public function renderDate ($date, $format = null)
    {
        if ($date < 1) {
            $date = time();
        }
        if ($format == null) {
            $format = Zend_Date::DATE_MEDIUM;
        }
        $dateObject = new Zend_Date($date);
        return $dateObject->get($format);
    }
}
?>